import { requestUrl } from "../util/request";
// 我的申请任务分页列表
export function applyList(params = {}) {
  return requestUrl({
    url: "/systask/list/apply",
    method: "get",
    data: params,
    keyWord: "notice",
    isJson: false,
  });
}
// 我的待办任务分页列表
export function todoList(params = {}) {
  return requestUrl({
    url: "/systask/list/todo",
    method: "get",
    data: params,
    keyWord: "notice",
    isJson: false,
  });
}
// 未读消息分页列表
export function unReadList(params = {}) {
  return requestUrl({
    url: "/sysnotice/list/aboutme",
    method: "get",
    data: params,
    keyWord: "notice",
    isJson: false,
  });
}
// 用户消息已读标记
export function readPost(params) {
  return requestUrl({
    url: "/msg-user-read",
    method: "put",
    data: params,
    keyWord: "notice",
    isJson: true,
  });
}
// 申请单位
export function addrList() {
  return requestUrl({
    url: `/scmstore/list?page=${1}&rows=${-1}`,
    data:'',
    method: "get",
    keyWord: "inspection",
    isJson: false,
  });
}
// 申请类型
export function getAllEnum(enumkeys: string) {
	return requestUrl({
		url: `/enums/${enumkeys}`,
		data: '',
		method: 'get',
		keyWord: 'notice',
		isJson: false
	})
}
// 申请人
export function applyPerson() {
  return requestUrl({
    url: `/scmuser/list?page=${1}&rows=${-1}`,
    data:'',
    method: "get",
    keyWord: "inspection",
    isJson: false,
  });
}
// 我的任务和通知数量
export function noticeNum() {
  return requestUrl({
    url: `/sysnotice/notice-num/aboutme`,
    data:'',
    method: "get",
    keyWord: "notice",
    isJson: false,
  });
}
// 报修、报废、跳转id
export function getAssetId(taskId: string) {
	return requestUrl({
		url: `/assetExecDtl/assets-id/${taskId}`,
		data: '',
		method: 'get',
		keyWord: 'assets',
		isJson: false
	})
}